<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Website tho van</title>
    <link rel="stylesheet" href="<?php echo $this->config->base_url();?>fw/bootstrap/css/bootstrap.min.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo $this->config->base_url();?>fw/bootstrap/css/bootstrap-theme.min.css" type="text/css" />
    <script type="text/javascript" src="<?php echo $this->config->base_url();?>fw/bootstrap/js/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->base_url();?>fw/bootstrap/js/bootstrap-select.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->base_url();?>fw/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="view">
            <div class="page-header">
                <a href="<?php echo $this->config->base_url();?>back_end/admin">
                    <h1 contenteditable="false">
                        WEBSITE THO VAN
                        <small>Trang tho</small>
                    </h1>
                </a>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="view">
            <ul class="nav nav-tabs">
                <li role="presentation" class="active"><a href="#">Quản lý</a></li>
                <li role="presentation"><a href="#">Profile</a></li>
            </ul>
        </div>
    </div>
    <div class="row">
        <div class="view">
            <div class="col-md-2 column ui-sortable" style="padding-left: 0px; padding-right: 3px;">
                <div class="list-group">
                <!-- <a href="/thoduong/" class="list-group-item active">Van hoc<span class="badge">14</span></a>
                <a href="#" class="list-group-item">Tho duong<span class="badge">14</span></a>
                <a href="#" class="list-group-item">Tho viet<span class="badge">14</span></a> -->
                <?php
                    if (isset($id) == true && $id == 'quan-ly-bai-tho') {
                        echo '<a href="/back_end/managementpoetic/management/quan-ly-bai-tho" class="list-group-item active">Quản lý bài thơ</a>';
                    } else {
                        echo '<a href="/back_end/managementpoetic/management/quan-ly-bai-tho" class="list-group-item">Quản lý bài thơ</a>';
                    }

                    if (isset($id) == true && $id == 'quan-ly-danh-muc') {
                        echo '<a href="/back_end/managementpoetic/management/quan-ly-danh-muc" class="list-group-item active">Quản lý danh mục</a>';
                    } else {
                        echo '<a href="/back_end/managementpoetic/management/quan-ly-danh-muc" class="list-group-item">Quản lý danh mục</a>';
                    }
                ?>

                <!-- <?php
                    foreach ($list_category as $category) {
                        echo "<a href=" . '"/category/show/' . $category->caption_id . '"' . " class=" . '"list-group-item">' .
                             $category->caption . "<span class=" . '"badge">' . $category->count_poetic . '</span></a>';
                    }
                ?> -->
                </div>
            </div>
            <div class="col-md-10 column ui-sortable" style="padding-left: 0px; padding-right: 3px;">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <?php
                            if (isset($id) == true && $id == 'quan-ly-bai-tho') {
                                echo "Quản lý bài thơ";
                            } else {
                                echo "Quản lý";
                            }
                        ?>

                    </div>
                    <div class="panel-body">
                        <!-- <p>Song gon trang giang buon diep diep</p> -->
                        <?php
                            if (isset($id) == true && $id == 'quan-ly-bai-tho') {
                                if (empty($action) == false && $action == 'search') {
                                    $this->load->view("back_end/poetic_search_result", array('list_poetic' => $list_poetic));
                                } else if(empty($action) == false && $action == 'edit') {
                                    $this->load->view("back_end/poetic_edit", array('poetic' => $poetic, 'list_category' => $list_category));
                                } else {
                                    $this->load->view("back_end/poetic_search");
                                }
                            } else {
                                echo "Giao diện quản lý trang thơ: " . $this->config->base_url();
                            }
                        ?>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>
<script>
    $(function () {
        // $('select.list-group').show();
    });
</script>
</body>
</html>